-- GENERATED SPELL FOR [Flamewaker Elite] --


function spell0_11664(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(20229,pUnit)
pUnit:RegisterEvent('Sorts_11664', 8316, 1)
end

function spell1_11664(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(20623,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11664', 544, 1)
end

function Sorts_11664(pUnit, Event)
local choix_sorts_11664 = math.random(0, 1)
if choix_sorts_11664 == 0 then
pUnit:RegisterEvent('spell0_11664', 1, 1)
end
if choix_sorts_11664 == 1 then
pUnit:RegisterEvent('spell1_11664', 1, 1)
end
end

function mob11664_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11664', math.random(1500, 3000), 1)
end

function mob11664_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11664_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11664_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11664, 1, 'mob11664_Action')
RegisterUnitEvent(11664, 2, 'mob11664_Leave')
RegisterUnitEvent(11664, 3, 'mob11664_Kill')
RegisterUnitEvent(11664, 4, 'mob11664_Die')
